package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.Company;
import com.winter.model.CompanyUser;

@Repository
public interface CompanyUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CompanyUser record);

    int insertSelective(CompanyUser record);

    List<CompanyUser> queryByUserNo(@Param("userNo") String userNo, @Param("orderBy") String orderBy, @Param("companyName") String companyName, @Param("companyId") Long companyId);

    int updateByPrimaryKeySelective(CompanyUser record);

    int updateByPrimaryKey(CompanyUser record);

    Long queryByKeyId();

    List<CompanyUser> queryPositionList(@Param("userNo") String userNo, @Param("jobFunction") String jobFunction);

    Company getByUserNo(@Param("createUser") String createUser);
}